apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: {{ storageClassName }}
provisioner: kubernetes.io/rbd
reclaimPolicy: Delete
volumeBindingMode: Immediate
parameters:
  monitors: {{ ceph_monitor }}
  adminId: {{ ceph_admin_id }}
  adminSecretName: ceph-admin-secret
  adminSecretNamespace: kube-system
  pool: {{ ceph_osd_pool }}
  userId: {{ ceph_user_id }}
  userSecretName: ceph-user-secret
  fsType: {{ ceph_fsType }}
  imageFormat: "{{ ceph_imageFormat }}"
{% if ceph_imageFormat and ceph_imageFormat == '2' %}
  imageFeatures: "layering"
{% endif %}